#include <iostream>
#include <cmath>

using std::cin;

int main()
    {
        int a = 1, b = 1, c = 1, d = 1;

        cout << "Don't press number 1" << endl;
        cin >> a;

    if (a == 1)
        {
             cout << "You've made me work, I hate you. If you want to know the square root of your favourite number, press 1. If you want to know does your favourite number divide, cout 2" << endl;
             cin >> b;
                {
                    if (b == 1)
                    {
                        cout << "Print your favourite number";
                        cin >> c;
                        cout << sqrt(c);

                else
                    if (b == 2)
                            cout << "Print your favourite number";
                            cin >> d;
                                   if (d%3==0)
                                   cout << "YES";
                                   else
                                   cout << "NO";
                                     }

        else
            cout << "ERROR";
            }
        return 0;
}
